package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ChargeOrderLogMapper;
import com.whq.entity.ChargeOrderLog;
import com.whq.service.ChargeOrderLogService;

@Service(value = "tdChargeOrderLogService")
public class ChargeOrderLogServiceImpl implements ChargeOrderLogService {

    @Autowired
    private ChargeOrderLogMapper<ChargeOrderLog>tdChargeOrderLogMapper;
    
    @Override
    public Integer insertSelective(ChargeOrderLog tdChargeOrderLog) throws Exception {
           return this.tdChargeOrderLogMapper.insertSelective(tdChargeOrderLog);
        }

    @Override
    public Integer insertBatch(List<ChargeOrderLog> tdChargeOrderLog) throws Exception {
           return this.tdChargeOrderLogMapper.insertBatch(tdChargeOrderLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdChargeOrderLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdChargeOrderLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ChargeOrderLog tdChargeOrderLog) {
           return this.tdChargeOrderLogMapper.updateByPrimaryKeySelective(tdChargeOrderLog);
    }

    @Override
    public ChargeOrderLog findById(Object id) {
           return (ChargeOrderLog) this.tdChargeOrderLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ChargeOrderLog> selectByCondition(ChargeOrderLog tdChargeOrderLog) {
           return (List<ChargeOrderLog>) this.tdChargeOrderLogMapper.selectByCondition(tdChargeOrderLog);
    }

    @Override
    public Integer selectCountByCondition(ChargeOrderLog tdChargeOrderLog) {
           return  this.tdChargeOrderLogMapper.selectCountByCondition(tdChargeOrderLog);
    }

}
